import 'package:flutter/material.dart';
class ProfileTab extends StatelessWidget{
  const ProfileTab({super.key});

  @override
  Widget build(BuildContext context) {
   return Scaffold(
     appBar: AppBar(
       title: const Text('个人中心'),
       centerTitle: true,
     ),
     body: const Center(
       child: Column(
         mainAxisAlignment: MainAxisAlignment.center,
         children: [
           CircleAvatar(
             radius: 50,
             backgroundImage: NetworkImage( 'https://avatars.githubusercontent.com/u/1?v=4'),
           ),
           SizedBox(height: 20),
           Text('用户名称',style: TextStyle(color: Colors.grey)),
           SizedBox(height: 30),
           ListTile(
             leading: Icon(Icons.settings),
             title: Text('设置'),
           ),
           ListTile(
             leading: Icon(Icons.help),
             title: Text('帮助中心'),
           ),
           ListTile(
             leading: Icon(Icons.logout),
             title: Text('退出登录'),
           )
         ],
       ),
     ),
   );
  }

}